<template>
    <div class="parent">

        <h3>这里是父组件</h3>
        <!--第一次-->
        <child>
            <template slot-scope="userList">
                <div class="content">
                    <span v-for="item in userList">{{item}}</span>

                </div>

            </template>

        </child>
        <!--        用列表展示数据-->
        <child>
            <template>
                <ul>
                    <li v-for="item in "></li>
                </ul>
            </template>
        </child>
    </div>
</template>

<script>
    import Child from "./child";

    export default {
        name: "parent",
        components: {Child}
    }
</script>

<style>

</style>
